﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace Mark.Sqlite.Attributes
{
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
	public class ColumnAttribute : Attribute
	{
		public string ColumnName { get; set; }

		public bool IsAutoIncrement { get; set; }
		public bool IsPrimaryKey { get; set; }

		public int Lenght { get; set; }
		public bool AllowNull { get; set; }

		public PropertyInfo PropertyInfo { get; set; }

		public ColumnAttribute()
		{
			AllowNull = true;
		}

	}
}
